// 进入了node03.js模块中的exports
var temp = require('./node03.js');
var user = new temp();
// user.eat();
var http = require('http');
http.createServer(function(request,response){
  // 清除浏览器的第二次访问
  if(request.url!=='/favicon.ico'){
    response.writeHead(200,{'Content-Type':'text/html;charset:utf-8'});
    user.eat();
    response.write(user.write());
    response.end();
  }
}).listen(8001);
